package com.longlong.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("wx_gzh_user")
public class WxGzhUser {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String openidGzh;

    //乐观锁
    @Version
    private Integer version;

    /*
    * 逻辑删除
    * */
    @TableLogic
    private Integer deleted;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.DEFAULT)
    private LocalDateTime deleteTime;

}
